package dijkstra;

public class Edge 
{
    public final Vertex target;
    public double weight;
    public Edge(Vertex argTarget, double argWeight)
    { target = argTarget; weight = argWeight; }
	public void aggiungiPeso(int peso) {
		weight=Math.max(peso+weight, 1);
	}
}